﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.Helpers.RSAHelper
{
    /// <summary>
    /// 请使用在线网站生成密钥
    /// 可在：http://web.chacuo.net/netrsakeypair/
    /// 性能估计：明文长度：3300，加密后长度：4780，耗时57.181毫秒，解密耗时265.7818毫秒
    /// </summary>
    public class RSAKey
    {
        /// <summary>
        /// 密钥类型
        /// </summary>
        public static string KeyType = "PKCS8";


        /// <summary>
        /// 公钥
        /// </summary>
        public static string PublicKey = @"-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDhF6LAiCBQTR3YbmdV/qNeLMfC
WbOTay2pIMhgWVP8jWpaLNg1vev8NHzkCbQCBzDlFMghabYKzHHc6vLkW6T8SiPq
BxAqp/F1xChwjRlOvA9HyxI2lgUfTS1LEr0X5uPOtuSVqps/c0vldzBXZDM4yqOg
RGnJq4f/FY0LMWOrhwIDAQAB
-----END PUBLIC KEY-----";

        /// <summary>
        /// 私钥
        /// </summary>
        public static string PrivateKey = @"-----BEGIN PRIVATE KEY-----
MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAOEXosCIIFBNHdhu
Z1X+o14sx8JZs5NrLakgyGBZU/yNalos2DW96/w0fOQJtAIHMOUUyCFptgrMcdzq
8uRbpPxKI+oHECqn8XXEKHCNGU68D0fLEjaWBR9NLUsSvRfm48625JWqmz9zS+V3
MFdkMzjKo6BEacmrh/8VjQsxY6uHAgMBAAECgYBJkZwUKWnGVS4oCw2jQbLLmP9B
OmhDCojF+n0DYK7eoKneB0Izbnuu1sjrD3DSKN+GQCCZKx/gr6mXdwMkN//YCMhp
d+eiwkFG+Dxu0podCAPTnqSXKU7fo5U680KzkrrpZjof2ej9Heo8T5vTM97wpQGt
HZXa4RDIOpsLNnD8gQJBAPDu6uPoH4mVp4N7HNySa158SqqdyZu1XXd/kSlIcyDn
83n4esKsTQHlONS5Up4kD5DdyrFyXLCBepq273ikqBcCQQDvKx8p1gZQvtg52RSY
8o0ZM57fPsQa5AoWcfBPHmp7I1epr6db5nMBftZlFKYGtwBBuobYxneO/QlW5SU3
ns4RAkBjGDE+GbvW79mdJ2bAhexpST/AmvNP+rF9s9c1npnTn/MxaHS9Wva1X90X
CT4k0vogAEkc4MekxSxzM+icu0RzAkB3YbXvgxap7WkvDu2aHtBReRPfaYwnxBZI
99y1EYCjMJQMblKCq/hSEcbgs7rf9S7aoEm5IPAC3slvp3e5WLqRAkBlo6HT30gr
kmYA7ycfkKgAAy2aAJ8LGJZdCd2OFRhfigIyFnkwKn/wLf/3xemoKxfVa05RJqtu
G696LvDAyzLh
-----END PRIVATE KEY-----";


    }
}
